package com.timeshare.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 评价实体
 */
@Data
@TableName("reviews")
public class Review {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 预约ID
     */
    private Long appointmentId;
    
    /**
     * 评价者ID
     */
    private Long reviewerId;
    
    /**
     * 被评价者ID
     */
    private Long reviewedId;
    
    /**
     * 评分（1-5星）
     */
    private Integer rating;
    
    /**
     * 评价内容
     */
    private String content;
    
    /**
     * 标签（JSON格式）
     */
    private String tags;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
